package com.lesales.dao.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.lesales.dao.interfaces.IRoleFunctionDao;
import com.lesales.model.RoleFunction;

@Repository
public class RoleFunctionDaoImpl extends BaseDaoImpl<RoleFunction, Serializable> implements IRoleFunctionDao {

	List<RoleFunction> rolefunctionlists;

	@Override
	public List<RoleFunction> findFunctionByRoleId(int roleId) {
		String hql = "FROM RoleFunction roleFunction WHERE roleFunction.roleId=" + roleId;
		rolefunctionlists = queryList(hql);
		return rolefunctionlists;
	}

}
